package com.cody.ssmmvp.service.impl;

import com.cody.ssmmvp.dao.UserDao;
import com.cody.ssmmvp.pojo.User;
import com.cody.ssmmvp.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by cody on 16/2/22.
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    public User getUserById(int userId) {
        return this.userDao.selectByPrimaryKey(userId);
    }

}
